<ion-view view-title="完善信息">
  	<header class="bar bar-header bar-stable" ng-class="{true:'ios_bar',false:''}[Is_Ios]">
  		<a href="javascript:void(0);" ui-sref="app.home" class="button button-icon ion-ios-arrow-left Whitefont-12" ng-class="{true:'ios_show',false:''}[Is_Ios]"></a>
        <h1 side="left" menu-toggle="left" class="title Whitefont-17" ng-class="{true:'ios_show',false:''}[Is_Ios]">完善信息</h1>
    </header>
  <ion-content class="perfectinfo" overflow-scroll="true" style="overflow: hidden;">
	<div class="circlBox margin-25" ng-click="openCam()">
		<img  id="myImage" ng-src="{{useMes.wxinfo.headimgurl ? useMes.wxinfo.headimgurl : 'img/icons/upload.svg'}}" width="80" height="80" style="border-radius: 50%;"/>
		<!--<img ng-src="{{camSrc ? camSrc : 'img/left2.png'}}"/>-->
	</div>
	<p class="Grayfont-16 Button-100">上传头像</p>
	<div class="Grayfont-16 Button-88 listBorder">
		<label>
			<i class="top-6 marginRight-20"><img src="img/loginicons/name.svg" alt="" width="16"/></i>
			<input class="noborder display-inline Button-80" ng-model="useMes.username" ng-minlength="2" ng-maxlength="10" type="text" value="" placeholder="姓名"/>
			<!--<i class="top-3 right-6"><img src="img/icons/delete_word.svg" width="16"/></i>-->
		</label>
	</div>
	<div class="Grayfont-16 Button-88 listBorder">
		<label>
			<i class="top-6 marginRight-20"><img src="img/loginicons/sex.svg" alt="" width="16"/></i>
			<input class="noborder display-inline Button-80" ng-click="openSex()" type="text" ng-if="!useMes.sex" value="" placeholder="请选择性别"/>
			<input class="noborder display-inline Button-80" ng-click="openSex()" type="text" ng-if="useMes.sex == 0" value="男"/>
			<input class="noborder display-inline Button-80" ng-click="openSex()" type="text" ng-if="useMes.sex == 1" value="女"/>
			<!--<i class="top-3 right-6"><img src="img/icons/delete_word.svg" width="16"/></i>-->
		</label>
	</div>
	<div class="Grayfont-16 Button-88 listBorder" ng-click="openDatePicker()">
		<label>
			<i class="top-6 marginRight-20"><img src="img/loginicons/date.svg" alt="" width="16"/></i>
			<!--<input class="noborder Whitebg display-inline Button-80" type="date" ng-model="useMes.birthday" placeholder="请选择出生日期"/>-->
            <p class="noborder Whitebg display-inline Button-80"><span ng-if="!useMes.birthday">请选择出生日期</span><span ng-if="useMes.birthday">{{useMes.birthday | date:'yyyy-MM-dd'}}</span></p>
			<!--<i class="top-3 right-6"><img src="img/icons/delete_word.svg" width="16"/></i>-->
		</label>
	</div>
    <ionic-city-picker class="noborder" options='vm.CityPickData'></ionic-city-picker>
	<div class="marginTop-40 line-40 Bluebgeasy Button-88 Whitefonteasy-15"  ng-if="!useMes.mobile || !useMes.code || !useMes.password || !useMes.comf_password || !useMes.username || !useMes.sex || !useMes.birthday || !useMes.address || !useMes.address">
		注册
	</div>
    <div class="marginTop-40 line-40 Bluebg Button-88 Whitefont-15" ng-if="useMes.mobile && useMes.code && useMes.password && useMes.comf_password && useMes.username && useMes.sex && useMes.birthday && useMes.address && useMes.address" ng-click="addUser()">
		注册
	</div>
     <!--<p class="text-center Redfont-14 marginTop-10">{{err}}</p>-->
 </ion-content>
</ion-view>


